package top.rzhsky.bean;

import java.io.Serializable;

public class MessageRecord implements Serializable {
    /**
     * 发送方
     */
    private User fromUser;
    /**
     * 接收方
     */
    private User toUser;
    /**
     * 内容
     */
    private String context;
    /**
     * 时间
     */
    private String time;

    public MessageRecord() {

    }

    public MessageRecord(User fromUser, User toUser, String context, String time) {
        this.fromUser = fromUser;
        this.toUser = toUser;
        this.context = context;
        this.time = time;
    }

    public User getFromUser() {
        return fromUser;
    }

    public void setFromUser(User fromUser) {
        this.fromUser = fromUser;
    }

    public User getToUser() {
        return toUser;
    }

    public void setToUser(User toUser) {
        this.toUser = toUser;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    @Override
    public String toString() {
        return "MessageRecord{" +
                "fromUser=" + fromUser +
                ", toUser=" + toUser +
                ", context='" + context + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
